GtkMenuItem: Take padding into account to position submenu arrow
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Tue, 21 May 2013 13:12:03 +0000 (15:12 +0200)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 29 May 2013 12:53:17 +0000 (14:53 +0200)
Since commit a69619edbc2b36aadbff200918ea9f11885d6109, it not
possible anymore for the style to add space between the border
and the arrow.

https://bugzilla.gnome.org/show_bug.cgi?id=700779

gtk/gtkmenuitem.c

index b33d79d3b1d48200c89db54bf2cee762eb934f5e..8286c6bbbf419e56a801bd232916bfad392bd002 100644 (file)
@@ -1656,12 +1656,12 @@ gtk_menu_item_draw (GtkWidget *widget,
 
       if (direction == GTK_TEXT_DIR_LTR)
         {
-          arrow_x = x + w - arrow_size;
+          arrow_x = x + w - arrow_size - padding.right;
           angle = G_PI / 2;
         }
       else
         {
-          arrow_x = x;
+          arrow_x = x + padding.left;
           angle = (3 * G_PI) / 2;
         }